import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import element from "element-plus"
import 'element-plus/theme-chalk/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import {createPinia} from "pinia";
import {createPersistedState} from "pinia-persistedstate-plugin";
const pinia = createPinia()
const persist = createPersistedState();
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

pinia.use(persist);
app.use(pinia).use(router).use(element)
app.mount('#app')